
package ch.unifr.dokpe.shortkeys;

/**
 * Bind the dll with java using the methods
 * <ul>
 * <li> native void pastFromClpb(int delkey);
 * <li> native void sendToKeyboard(int delkey, String data, byte vkcode);
 * <li> native void  releaseExtendedKeys();
 * </ul>
 */

public class KbHook  extends AkbHook {
	static  {System.loadLibrary("kbhook");}
		

	
	/**
	 * Register the dll as a keyboard hook with  SetWindowsHookEx
	 */
 	public native void registerHook();

	/**
	 * Remove the dll with PostThreadMessage
	 */
	public native void unRegisterHook();

	public native void pastFromClpb(int delkey);


	public native void sendToKeyboard(int delkey, String data, byte vkcode);


	public native void releaseExtendedKeys();
	

}
